<template>
    <div class="box">
        <el-container>
            <el-aside width="200px">
                <Menu></Menu>
            </el-aside>
            <el-container>
                <el-header>
                    <Avatar></Avatar>
                </el-header>
                <el-main>
                    <RouterView></RouterView>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>
import Menu from '@/components/Menu.vue';
import Avatar from '../../components/Avatar.vue'
import { RouterView } from 'vue-router';
export default {
    components: {
        Menu,
        Avatar
    }
}
</script>

<style scoped>
.box {
    height: 100%;
}

.el-container {
    height: 100%;
}

.el-header,
.el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
}

.el-header {
    background-color: #333;
}

.el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
    height: 100%;
}

.el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
}

.el-aside {
    line-height: 260px;
}
</style>
